<%--
  Created by IntelliJ IDEA.
  User: SQB
  Date: 2015/5/28
  Time: 3:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- navbar-static-top静止头部，不跟随屏幕移动 -->
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <img src="${path}/view/bootstrap/img/blue.gif" style="width: 50px;height: 50px">
        </div>

        <ul class="nav navbar-nav">
            <li class="active"><a href="${path}/article/java/list">Java</a></li>
            <li><a href="${path}/article/linux/list">Linux</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
                    Dropdown
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu" role="menu">
                    <li><a href="#">hello</a></li>
                    <li><a href="#">hello</a></li>
                    <li><a href="#">hello</a></li>
                    <li><a href="#">hello</a></li>
                    <li><a href="#">hello</a></li>
                </ul>
            </li>
        </ul>

        <form class="navbar-form navbar-left" role="search">
            <div class="form-group">
                <input type="text" class="form-control" placeholder="Search">
            </div>
            <button type="submit" class="btn btn-default">Submit</button>
        </form>
        <button type="button" class="btn btn-default navbar-btn navbar-right">Sign in</button>
        <p class="navbar-text">欢迎来到<a href="#" class="navbar-link">Kevin's</a>Blog</p>
    </div>
</nav>


<div class="container-fluid">
    <ol class="breadcrumb">
        <li><a href="${path}/index">首页</a></li>
        <!--li><a href="${path}/article/java/list">java</a></li-->
    </ol>
</div>
<script>
    $(function(){
        var href = window.location.href;
        if(href.indexOf("index")){

        }
        if(href.indexOf("all")>0){
            $(".breadcrumb").append(
                '<li class="active">article</li>'
        );
        }
        if(href.indexOf("java")>0){
            $(".breadcrumb").append(
                    '<li><a href="${path}/article/all/list">article</a></li> <li class="active">java</li>'
            );
        }else if(href.indexOf("linux")>0){
            $(".breadcrumb").append(
                    '<li><a href="${path}/article/all/list">article</a></li> <li class="active">linux</li>'
            );
        }
    });
</script>
